﻿using System;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace SHFST.UI
{
   public class TextDisplay
   {
      public String text = "";
      public Color color = Color.White;
      public SpriteFont font;
      public Point position;

      public void Load (SpriteFont newFont, Point newPos)
      {
         font = newFont;
         position = newPos;
      }

      public void Draw (SpriteBatch batch)
      {
         Vector2 fontOrigin = font.MeasureString (text) / 2;
         batch.DrawString (font, text, new Vector2 (position.X, position.Y), color, 0, fontOrigin, 1.0f, SpriteEffects.None, 0.5f);
      }
   }
}
